import { isIOS } from '../../../../constant';
import { phonePx } from '../../../../util/adapt';
import statusBarManager from '../../../../util/native/statusBarManager';
import { getScreenInfo } from '../../../../util/screen';

const { width } = getScreenInfo({});

export const empty = '';

export const BANNER_WIDTH = width - phonePx(32);

export const CONTENT_WIDTH = width - phonePx(32);

export enum CommodityType {
  Unknown,
  Demo,
  System
}

export const GRADE_LIST = [
  // {
  //   id: 101,
  //   desc: '一年级'
  // },
  // {
  //   id: 102,
  //   desc: '二年级'
  // },
  // {
  //   id: 103,
  //   desc: '三年级'
  // },
  // {
  //   id: 104,
  //   desc: '四年级'
  // },
  // {
  //   id: 105,
  //   desc: '五年级'
  // },
  {
    id: 106,
    desc: '六年级'
  },
  {
    id: 107,
    desc: '七年级'
  },
  {
    id: 108,
    desc: '八年级'
  },
  {
    id: 109,
    desc: '九年级'
  }
];

export const HEAD_HEIGHT =
  phonePx(16) +
  statusBarManager.getStatusBarHeight() +
  phonePx(28) +
  phonePx(20) +
  phonePx(24) +
  phonePx(9.5) +
  (isIOS ? phonePx(2) : 0);
